package indi.jp.project.business.pub.dao;

import indi.jp.project.business.pub.pojo.po.CompanyPO;
import indi.jp.project.business.pub.pojo.query.CompanyQuery;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

/**
 * 合作单位DAO
 *
 * @author jiangping
 * @date 2022/5/17
 */
@Mapper
public interface CompanyDAO {

    List<CompanyPO> queryList(CompanyQuery query) throws SQLException;

    int queryCount(CompanyQuery query) throws SQLException;

    void insert(CompanyPO companyPO) throws SQLException;

    void update(CompanyPO companyPO) throws SQLException;

    CompanyPO findById(String id) throws SQLException;

    void deleteById(String id) throws SQLException;

}
